import axios from 'axios';

const api = {
    getChatHistory: (disputeId, pageNum = 1, pageSize = 10) => {
        return axios.get(`/disputes/${disputeId}/history`, {
            params: { pageNum, pageSize },
        });
    },
    getDisputeDetail: (disputeId) => {
        return axios.get('/disputes/detail', {
            params: { disputeId },
        });
    },
    getDisputeRule: () => {
        return axios.get('/disputes/rule');
    },
};

export default api;
